//#ifndef DVR_I2CVIRTUAL_H_
//#define DVR_I2CVIRTUAL_H_

#define SCL_line 		0x08
#define SDA_line 		0x04
#define INPUT			  0
#define OUTPUT			1
#define SCL_shift		3
#define SDA_shift		2
#define SDA(x)			PTCD = (PTCD & ~SDA_line)|(SDA_line & (x << SDA_shift))
#define SCL(x)			PTCD = (PTCD & ~SCL_line)|(SCL_line & (x << SCL_shift))
#define SDA_mode(x) 	PTCDD = (PTCDD & ~SDA_line)|(SDA_line & (x << SDA_shift))
#define SCL_mode(x) 	PTCDD = (PTCDD & ~SCL_line)|(SCL_line & (x << SCL_shift))
#define INVALUE(P)		(PTCD >> P) & 0x01 
#define delay1			delay_us(5); 


extern int ifnSelective_read(unsigned char addres, unsigned char Waddr, unsigned char Numdata, char *lpub_DataPointer);
extern int ifnWrite_byte(unsigned char addres, unsigned char Waddr, unsigned char Numdata, char *datos);
extern int ifnByteOnly_read(unsigned char addres, unsigned char Waddr, char *lpub_DataPointer);


//#endif /*DVR_I2CVIRTUAL_H_*/
